$(function (){
	var p = {
		width:690,
		height:285,
		list:[{
			id:"1",
			url:"/imgs/rotate/1.jpg",
			imgLink:"http://www.baidu.com",
			name:"百度搜索"
		},{
			id:"2",
			url:"/imgs/rotate/2.jpg",
			imgLink:"http://www.360buy.com",
			name:"京东商城"
		},{
			id:"3",
			url:"/imgs/rotate/3.jpg",
			imgLink:"http://www.dangdang.com",
			name:"当当购物"
		},{
			id:"4",
			url:"/imgs/rotate/4.jpg",
			imgLink:"http://www.tmall.com",
			name:"天猫商城"
		},{
			id:"5",
			url:"/imgs/rotate/5.jpg",
			imgLink:"http://www.suning.com",
			name:"苏宁电器"
		},{
			id:"6",
			url:"/imgs/rotate/6.jpg",
			imgLink:"http://www.z.cn",
			name:"亚马逊书店"
		}]
	};
	$("#j_rotate_images").j_rotateMouble(p);

	//contract mobile
	
	var contractP = {
		width:212,//690 arrow 24px img(padding left+right 10)
		height:160,
		showNum:3,
		imgWidth:160,
		imgHeight:160,
		isSpecial:1,
		list:[{
			id:"1",
			url:"/imgs/contract/1.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			type:"热卖",
			discount:"9.1",
			price:200,

			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/2.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			type:"促销",
			discount:"8.1",
			price:200,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/3.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			type:"人气",
			discount:"6.1",
			price:220,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/4.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			type:"新品",
			discount:"5.1",
			price:290,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50.",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/5.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			type:"热卖",
			discount:"4.1",
			price:240,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送5032232",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/6.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			type:"霸气",
			discount:"3.1",
			price:800,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		}]
	}; 
	$("#j_contractMove").j_moveMouble(contractP);

	//server data
	/*
	var contractListVal = $("#j_contractlist").val();
	if(contractListVal&&contractListVal.length>0){
		var contractJson = $.parseJSON(contractListVal);

		$("#j_contractMove").j_moveMouble(contractJson);
	}*/

	

	var commonP = {
		width:219,/*940 arrow 24px 916 img(padding left+right 10)*/
		height:160,
		showNum:4,
		imgWidth:160,
		imgHeight:160,
		list:[{
			id:"1",
			url:"/imgs/contract/1.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			price:200,

			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/2.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			price:200,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/3.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			price:220,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/4.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			price:290,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50.",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/5.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			price:240,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送5032232",
			nameLink:"http://www.360buy.com"
		},{
			id:"1",
			url:"/imgs/contract/6.jpeg",
			imgLink:"http://www.baidu.com",
			oldPrice:533,
			price:800,
			name:"当当周年庆 OSA欧莎修身裙摆大衣 满499减50再送50",
			nameLink:"http://www.360buy.com"
		}]
	}; 
	$("#j_newMove").j_moveMouble(commonP);
	$("#j_hotMove,").j_moveMouble(commonP);
	$("#j_configMove").j_moveMouble(commonP);

});